import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Login',
        component: () =>
            import ('../views/Login/Login.vue')
    },
    {
        path: '/main',
        name: 'Main',
        component: () =>
            import ('../views/Main.vue'),
        children: [
            //农行信用卡相关路由
            {
                path: '/information_abc',
                name: 'Information_ABC',
                component: () =>
                    import ('../views/Information/ABC/ABC.vue')

            },
            {
                path: '/information_credit_card',
                name: 'Information_CreditCard',
                component: () =>
                    import ('../views/Information/ABC/CreditCard/CreditCard.vue')

            },
            {
                path: '/document_abc',
                name: 'Document_ABC',
                component: () =>
                    import ('../views/Document/ABC/ABC.vue')

            },
            {
                path: '/document_credit_card',
                name: 'Document_CreditCard',
                component: () =>
                    import ('../views/Document/ABC/CreditCard/CreditCard.vue')
            },
            //农行房贷相关路由

            //广发相关路由

            {
                path: '/information_gdb',
                name: 'Information_GDB',
                component: () =>
                    import ('../views/Information/GDB/GDB.vue')

            },

            {
                path: '/document_gdb',
                name: 'Document_GDB',
                component: () =>
                    import ('../views/Document/GDB/GDB.vue')

            },
            {
                path: '/information_house_loan',
                name: 'Information_HouseLoan',
                component: () =>
                    import ('../views/Information/ABC/HouseLoan/HouseLoan.vue')
            },
            {
                path: '/document_house_loan',
                name: 'Document_HouseLoan',
                component: () =>
                    import ('../views/Document/ABC/HouseLoan/HouseLoan.vue')
            },
            {
                path: "/information_gdb_gdb",
                name: "InformationGdbGdb",
                component: () =>
                    import ('../views/Information/GDB/GDB/GDB.vue')
            },
            {
                path: "/document_gdb_gdb",
                name: "DocumentGdbGdb",
                component: () =>
                    import ('../views/Document/GDB/GDB/GDB.vue')
            },
            {
                path: "/information_pa",
                name: "Information_PA",
                component: () =>
                    import ('../views/Information/PA/PA.vue')
            },
            {
                path: "/document_pa",
                name: "Document_PA",
                component: () =>
                    import ('../views/Document/PA/PA.vue')
            },
            {
                path: "/information_pa_pa",
                name: "InformationPAPA",
                component: () =>
                    import ("../views/Information/PA/PA/PA.vue")
            },
            {
                path: "/document_pa_pa",
                name: "DocumentPAPA",
                component: () =>
                    import ("../views/Document/PA/PA/PA.vue")
            },
            {
                path: "/others",
                name: "Others",
                component: () =>
                    import ("../views/Others/Others.vue")
            }







        ]
    },








]

const router = new VueRouter({
    routes
})

export default router